home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1989 …il & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / Interfaces / CIncludes / String.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  1.4 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2.     String.h -- String handling
  3.  
  4.     Copyright Apple Computer,Inc.    1987, 1988
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __STRING__
  10. #define __STRING__
  11.  
  12. #ifndef __STDDEF__
  13. #include <StdDef.h>
  14. #endif __STDDEF__
  15.  
  16.  
  17. /*
  18.  *    Copying functions
  19.  */
  20.  
  21. #ifdef __safe_link
  22. extern "C" {
  23. #endif
  24.  
  25. void *memcpy (void *s1, const void *s2, size_t n);
  26. void *memmove (void *s1, const void *s2, size_t n);
  27. char *strcpy (char *s1, const char *s2);
  28. char *strncpy (char *s1, const char *s2, size_t n);
  29.  
  30. /*
  31.  *    Concatenation functions
  32.  */
  33.  
  34. char *strcat (char *s1, const char *s2);
  35. char *strncat (char *s1, const char *s2, size_t n);
  36.  
  37. /*
  38.  *    Comparison functions
  39.  */
  40.  
  41. int memcmp (const void *s1, const void *s2, size_t n);
  42. int strcmp (const char *s1, const char *s2);
  43. int strcoll (const char *s1, const char *s2);
  44. int strncmp (const char *s1, const char *s2, size_t n);
  45. size_t strxfrm (char *s1, const char *s2, size_t n);
  46.  
  47.  
  48. /*
  49.  *    Search functions
  50.  */
  51.  
  52. void *memchr (const void *s, int c, size_t n);
  53. char *strchr (const char *s, int c);
  54. size_t strcspn (const char *s1, const char *s2);
  55. char * strpbrk (const char *s1, const char *s2);
  56. char *strrchr (const char *s, int c);
  57. size_t strspn (const char *s1, const char *s2);
  58. char *strstr (const char *s1, const char *s2);
  59. char *strtok (char *s1, const char *s2);
  60.  
  61.  
  62. /*
  63.  *    Miscellaneous functions
  64.  */
  65.  
  66. void *memset (void *s, int c, size_t n);
  67. char *strerror (int errnum);
  68. size_t strlen (const char *s);
  69.  
  70. #ifdef __safe_link
  71. }
  72. #endif
  73.  
  74. #endif __STRING__
  75.